home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Communications Toolbox / CommToolbox 1.1 / Interfaces / CIncludes / TerminalTools.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-21  |  2.0 KB  |  111 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.     TerminalTools.h
  3.     C Interface to the Macintosh Libraries
  4.  
  5.         Copyright Apple Computer, Inc. 1988-1991
  6.         All rights reserved
  7. ************************************************************/
  8.  
  9.  
  10. #ifndef __TERMINALTOOLS__
  11. #define __TERMINALTOOLS__
  12.  
  13. #ifndef __DIALOGS__
  14. #include <Dialogs.h>
  15. #endif
  16.  
  17. #ifndef __TERMINALS__
  18. #include <Terminals.h>
  19. #endif
  20.  
  21.  
  22. enum {
  23.  
  24.  
  25. #define    tdefType            'tdef'
  26. #define    tvalType            'tval'
  27. #define    tsetType            'tset'
  28. #define    tlocType            'tloc'
  29. #define    tscrType            'tscr'
  30. #define    tbndType            'tbnd'
  31. #define    tverType            'vers'
  32.  
  33. /* messages */
  34.  
  35.  tmInitMsg = 0,
  36.  tmDisposeMsg = 1,
  37.  tmSuspendMsg = 2,
  38.  tmResumeMsg = 3,
  39.  tmMenuMsg = 4,
  40.  tmEventMsg = 5,
  41.  tmActivateMsg = 6,
  42.  tmDeactivateMsg = 7,
  43.  tmGetErrorStringMsg = 8,
  44.  
  45.  tmIdleMsg = 50,
  46.  tmResetMsg = 51,
  47.  
  48.  tmKeyMsg = 100,
  49.  tmStreamMsg = 101,
  50.  tmResizeMsg = 102, 
  51.  tmUpdateMsg = 103, 
  52.  tmClickMsg     = 104,
  53.  tmGetSelectionMsg = 105,
  54.  tmSetSelectionMsg = 106,
  55.  tmScrollMsg = 107, 
  56.  tmClearMsg = 108
  57. };
  58. enum {
  59.  tmGetLineMsg = 109,
  60.  tmPaintMsg     = 110,
  61.  tmCursorMsg = 111,
  62.  tmGetEnvironsMsg = 112,    
  63.  tmDoTermKeyMsg = 113,
  64.  tmCountTermKeysMsg = 114,
  65.  tmGetIndTermKeyMsg = 115,
  66.  
  67. /* messages for validate DefProc    */
  68.  tmValidateMsg = 0,
  69.  tmDefaultMsg = 1,
  70.  
  71. /* messages for Setup DefProc    */
  72.  tmSpreflightMsg = 0,
  73.  tmSsetupMsg = 1,
  74.  tmSitemMsg     = 2,
  75.  tmSfilterMsg = 3,
  76.  tmScleanupMsg = 4,
  77.  
  78. /* messages for scripting defProc    */
  79.  tmMgetMsg = 0,
  80.  tmMsetMsg = 1,
  81.  
  82. /* messages for localization defProc  */
  83.  tmL2English = 0,
  84.  tmL2Intl = 1
  85. };
  86.  
  87. struct TMSearchBlock {
  88.         StringHandle    theString;
  89.         Rect            where;
  90.         TMSearchTypes    searchType;
  91.         ProcPtr            callBack;
  92.         short            refnum;
  93.         struct TMSearchBlock    *next;
  94. };
  95.  
  96. typedef struct TMSearchBlock TMSearchBlock;
  97. typedef TMSearchBlock *TMSearchBlockPtr;
  98.  
  99. struct TMSetupStruct {
  100.         DialogPtr        theDialog;
  101.         short            count;
  102.         Ptr                theConfig;
  103.     short procID; /* procID of the tool */
  104. };
  105.  
  106. typedef struct TMSetupStruct TMSetupStruct;
  107. typedef TMSetupStruct *TMSetupPtr;
  108.  
  109.  
  110.  
  111. #endif